<template>
  <el-config-provider
    :size="config.size"
    :locale="config.locale"
    :button="{autoInsertSpace: config.autoInsertSpace}"
    :message="{max: config.maxMessageCount}"
  >
    <RouterView />
  </el-config-provider>
</template>

<script setup lang="ts">
import { RouterView } from 'vue-router'
import { ref } from 'vue';
import { useStore } from './store';

const store = useStore()

const config = ref(store.state.config)
</script>